package com.mf.all.entity.req.customer;

import java.io.Serial;

import com.mf.all.groups.GroupsAddInterface;
import com.mf.all.groups.GroupsUpdateInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;

/**
 * 客户地址提交
 *
 * @date 2025-04-02 22:36:47
 */
@Data
public class ReqCustomerAddr implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    @Null(message = "id必须为空", groups = {GroupsAddInterface.class})
    private Integer id;
    @Schema(description = "客户地址")
    @NotBlank(message = "客户地址不能为空", groups = {GroupsUpdateInterface.class, GroupsAddInterface.class})
    private String addr;
    @Schema(description = "客户id")
    @NotNull(message = "客户地址不能为空", groups = {GroupsUpdateInterface.class, GroupsAddInterface.class})
    private Integer customerId;
    @Schema(description = "备注")
    private String remark;
}
